//
//  GirlFriend.swift
//  yangyuchen
//
//  Created by jiayi zhao on 2017/9/19.
//  Copyright © 2017年 songchengyi. All rights reserved.
//

import Foundation
public class GirlFriend {
    
    private var _name:String
    
    private var _age:Int
    
    init(age:Int,name:String) {
        
        _name = name
        
        _age = age
    }
    public var name:String{
        get{
            return _name
        }
        set{
            _name=newValue
        }
    }
    public var age:Int{
        get{
            return _age
        }
        set{
            _age = newValue
        }
    }
    
    public func date()
    {
        print("约会:name:\(_name),age:\(_age)")
    }
}
